package com.stylefeng.guns.rest.modular.user;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.stylefeng.guns.api.user.UserApi;
import com.stylefeng.guns.api.user.UserInfoModule;
import com.stylefeng.guns.api.user.UserModule;
import org.springframework.stereotype.Component;

/**
 * @author sun7ay
 * Created on  2019-01-20
 */
@Component
public class UserApiImpl implements UserApi {

    @Reference
    private UserApi userApi;

    @Override
    public int login(String userName, String password) {
        return userApi.login(userName,password);
    }

    @Override
    public boolean register(UserModule userModule) {
        return false;
    }

    @Override
    public boolean checkUserName(String userName) {
        return false;
    }

    @Override
    public UserInfoModule getUserInfo(int uuid) {
        return null;
    }

    @Override
    public UserInfoModule updateUserInfo(UserInfoModule module) {
        return null;
    }
}
